replica.lua